// api.js
import request from '@/utils/request.js';


export const selectGift = () => {
    return request({
        url: '/live/selectGift'
    });
};


export const getUserGold = () => {
    return request({
        url: '/live/getUserGold'
    });
};


export const giveGift = (giftId) => {
    return request({
        url: `/live/giveGift/${giftId}`,
		method: 'POST'
    });
};


export const getUserByContribution = () => {
    return request({
        url: '/live/getUserByContribution'
    });
};

export const getGiftInfoById = (giftId) => {
    return request({
        url: `/live/getGiftInfoById/${giftId}`
    });
};





